home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / utils sync / JetSync 1.0 / jetsync-1.0.exe / jetsync-1.0 / src / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-30  |  1.2 KB  |  51 lines

  1. #ifndef __DEFS_H__
  2. #define __DEFS_H__
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include <unistd.h>
  8. #include <limits.h>
  9. #include <signal.h>
  10. #include <sys/stat.h>
  11. #include "pi-source.h"
  12. #include "pi-socket.h"
  13. #include "pi-dlp.h"
  14. #include "pi-file.h"
  15. #include <tk.h>
  16.  
  17. /* lines with this macro are code called from within Tcl/Tk */
  18. #define __TCL__
  19.  
  20. /* define the value of ULONG_MAX if necessary */
  21. #ifndef ULONG_MAX
  22.  #define ULONG_MAX 65535
  23. #endif
  24.  
  25. /* generic error handling for pilot error return codes */
  26. #define pierror(arg) if (arg) \
  27.   printf("\033[1;31m@@ SEVERE ERROR: error code %d returned in module %s:%d\033[0m\n", \
  28.           arg,__FILE__,__LINE__);
  29.  
  30.  
  31. /* global reference to Tcl/Tk interpreter -- used in progress bar */
  32. extern Tcl_Interp *g_interp;
  33.  
  34.  
  35. /* synchronization type */
  36. #define BIDIREC    '1'   /* PC<<->>PILOT */
  37. #define PC2PILOT   '2'   /* PC->>PILOT */
  38. #define PILOT2PC   '3'   /* PC<<-PILOT */
  39. #define DO_NOTHING '4'   /* DO NOTHING */
  40.  
  41.  
  42. /* configuration files: location and filenames */
  43. #define JS_PREFS "conf/prefs"
  44. #define JS_USERPREFS "conf/prefs"
  45. #define JS_JETUSERS "conf/jetusers"
  46. #define JS_CONDUITS "conf/conduits.def"
  47. #define JS_CONDUITS_TMP "conf/conduits.tmp"
  48. #define JS_CONDUITS_TMP1 "conf/conduits.tmp1"
  49.  
  50. #endif
  51.